{% extends "base.html" %}
{% block title %}Eliminar Artefactos{% endblock %}
{% block head %}Eliminar Artefactos{% endblock %}
{% block content %}
{% if show_art_list %}
{% include "artefacto_list.html" %}
<br>
<input type="button" name="load" value="Volver a M&oacute;dulo de Desarrollo" onClick='location.href="/dev_page/?proyectoname={{proyname|urlencode}}"'>
{% else %}
<style type="text/css">
label { vertical-align: top; }
input.sub_btn { 
	background-color:#E7E7E7; 
}
</style>
<script type='text/javascript'>
function spoiler(sObj)
{
	var sRef = sObj.parentNode.nextSibling;
	if (sRef.nodeType != 1)
		sRef = sRef.nextSibling;
		
	if (sRef.className == "hide")
	{
		sObj.value = "Esconder";
		sRef.className = "s_top";
	}
	else
	{
		sObj.value = "Mostrar";
		sRef.className = "hide";
	}
}

</script>
<div class="spoiler">
    <div class="spoiler_title">Caracter&iacute;sticas: <input type="button" value="Esconder"onclick="spoiler(this);" class="sub_btn"></div>
	<div class="s_top">
<p><b>Nombre:</b> {{artefact.nombre}}</p>
<p><b>Tipo de Artefacto:</b> {{artefact.tipoArtefacto}}</p>
<p><b>N&uacute;mero:</b> {{artefact.nro_Artefacto}}</p>
<p><b>Fase:</b> {{artefact.get_fase_display}}</p>
<p><b>Descripci&oacute;n Breve:</b> {{artefact.descripcionBreve}}</p>
<p><b>Descripci&oacute;n Detallada:</b> {{artefact.descripcionDetallada}}</p>
<p><b>Complejidad:</b> {{artefact.complejidad}}</p>
<p><b>Adjunto:</b> {{artefact.adjunto}}</p>
<p><b>Versi&oacute;n:</b> {{artefact.version}}</p>
<p><b>&Uacute;ltima modificaci&oacute;n:</b> {{artefact.fecha}}</p>
</div>
</div>

<form enctype="multipart/form-data" method="post">
<br>
	<p><b>Est&aacute; seguro que desea eliminar este artefacto?</b></p>
    <input name="idProy" type="hidden" value={{idProy|urlencode}}>
	<input name="idArt" type="hidden" value={{artefact.id|urlencode}}>
    <input type="submit" value="Borrar">
	<input type="button" name="load" value="Cancelar" onClick='location.href="/artan_delete/?proyectoname={{proyname}}"'>
</form>
{% endif %}
{% endblock %}
